var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({ 
    title:String,
    content:String,
    author:String,
    datetime:String,
    cate:String, //当前分类
    source:String,
    keyword:String,
    comment:String,
    like:String
 });
schema.plugin(mongoosePaginate);

module.exports= mongoose.model('News',  schema,'news'); 